import java.util.Scanner;

public class Demo12 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String st = sc.nextLine();
        String sub = st.substring(0, 6);
        char[] chars = new char[st.length() - 10];
        for (int i = 0; i < chars.length; i++) {
            chars[i] = '*';
        }
        String chang = new String(chars);
        sub = sub + chang + st.substring(st.length() - 4);
        System.out.println(sub);
    }
}